<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage" %>

<table style="width: 100%;">
	<tr>
		<th>
			Mail
		</th>
		<th>
			Status
		</th>
		<th>
			Numbers
		</th>
		<th>
			Created date
		</th>
		<th>
			Updated date
		</th>
		<th>
		</th>
	</tr>
	<% foreach (var m in (ViewData["Mails"] as IList<Mailer.Model.Types.Mail>)
	   )
	{ %>
	<tr>
		<td>
			<%= Html.ActionLink(m.Name, "View", "Mail", new { Id = m.ID }, null)%>
		</td>
		<td>
			<%= Mailer.Views.ViewHelpers.GetSmallMailStatusLabelHTML( m )  %>
		 </td>
		<td class="nopad">
			<%= Mailer.Views.ViewHelpers.GetSmallMailStatusGraphHTML( m )  %>
		</td>
		<td>
			<%= m.CreatedDate %>
		</td>
		<td>
			<%= m.UpdatedDate %>
		</td>
		<td>
			<%= Html.ActionLink("Edit", "Edit", "Mail", new { Id = m.ID }, null)%>
		</td>
	</tr>
	<% } %>
</table>
